//
//  SocketDispatch.h
//  dongfangyixin20151027
//
//  Created by longziyuan on 15-3-9.
//
//

#import <Foundation/Foundation.h>
#import "AsyncSocket.h"
#import "SocketCheckDelegate.h"


@interface SocketDispatch : NSObject<AsyncSocketDelegate>
{
    NSString* theBest;
    BOOL is_Lock;
    NSMutableDictionary* urlsDic;
    NSMutableArray* timeArr;
    int checkFailCount;
    int checkTotalCount;
}
@property (assign,nonatomic) id<SocketCheckDelegate>delegate;
//+(NSString*)getTheBestUrl:(NSString*)theBest1;
+(SocketDispatch*)sharedInstance;
-(void)socketCheck;
@end
